package cc.linker.steplink.crm.merchant.service;

import cc.linker.steplink.crm.merchant.dao.MallMapper;
import cc.linker.steplink.crm.merchant.pojo.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("mallBackService")
public class MallService {
	
	@Autowired
	private MallMapper mallMapper;
	
	public Banner getMall(Map<String,Object> params){
		return mallMapper.getMall(params);
	}
	
	public void insertMall(Map<String,Object> params){
		 mallMapper.insertMall(params);
	}
	
	public void updateMall(Map<String,Object> params){
		 mallMapper.updateMall(params);
	}
	
	public Long getMerchantId(String wxappletId){
		return mallMapper.getMerchantId(wxappletId);
	}
}
